<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="../resource/layui/css/layui.css"  media="all">
</head>

<body onload="disconnect()">
    <noscript>
        <h2 style="color:#ff0000">貌似你的浏览器不支持websocket</h2>
    </noscript>
    <div>
        <div>
            <button id="connect" onclick="connect()">连接</button>
            <button id="disconnect"  onclick="disconnect();">断开连接</button>
        </div>
        <div id="conversationDiv">
            <label>输入你的名字</label> <input type="text" id="name" />
            <button id="sendName" onclick="sendName();">发送</button>
            <p id="response"></p>
        </div>
    </div>
    <script src="../resource/jquery/dist/jquery.min.js"></script>
    <script src="../resource/layui/layui.js"></script>
    <script src="../resource/myResource/js/base.js"></script>
    <script src="../resource/websockt/sockjs.min.js"></script>
    <script src="../resource/websockt/stomp.min.js"></script>
    <script src="../resource/myResource/js/webscoket/websocket.js"></script>
    <script type="text/javascript">
    </script>
</body>
</html>